package dao.entities.control;

import java.io.Serializable;

import javax.persistence.Embeddable;

@Embeddable
public class IdProvaLoro implements Serializable {

	private long loro;

	private long prova;

	public IdProvaLoro() {
	}

	public IdProvaLoro(long loro, long prova) {
		super();
		this.loro = loro;
		this.prova = prova;
	}

	public long getLoro() {
		return loro;
	}

	public void setLoro(long loro) {
		this.loro = loro;
	}

	public long getProva() {
		return prova;
	}

	public void setProva(long prova) {
		this.prova = prova;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (loro ^ (loro >>> 32));
		result = prime * result
				+ (int) (prova ^ (prova >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		IdProvaLoro other = (IdProvaLoro) obj;
		if (loro != other.loro)
			return false;
		if (prova != other.prova)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Loro " + loro + " Prova " + prova;
	}

}